from django.db import models


class NulUsers(models.Model):
    UID = models.AutoField(primary_key=True)
    OpenID = models.CharField(max_length=64)
    UnionID = models.CharField(max_length=256)


class NulCommunicationList(models.Model):
    ID = models.AutoField(primary_key=True)
    Speaker = models.SmallIntegerField(default=0)
    OpenID = models.CharField(max_length=64, default='')
    UnionID = models.CharField(max_length=64, default='')
    Time = models.DateTimeField(auto_now=True)
    Content = models.CharField(max_length=255)
